package com.ridu.project.beshid.entity;

import com.ridu.project.beshid.api.AppealStatus;
import lombok.*;

import javax.persistence.*;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Entity
@Table(name = "appeal", catalog = "besh_id_edu")
public class AppealEntity extends BaseEntity {

    @Column(name = "type")
    private String type = AppealStatus.异常问题.value();
    @Column(name = "description")
    private String description;
    @Column(name = "status")
    private String status;
    @ManyToOne
    @JoinColumn(name = "admin_id")
    private UserEntity user;

}
